package com.wdd.myplatform.consumerservice.feign;


import com.wdd.commmon.providerservice.entity.Goods;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "provider-service")
@Service
@RefreshScope()
public interface GoodsFeignService {

    @GetMapping("/goods/{goodsId}")
    Goods getGoodsDetail(@PathVariable("goodsId") String goodsId);
}
